# src/meson.build
# 源文件为 src/base 下的头文件
base_srcs = files(
  'base/CopyPolicy.h',
  'base/Singleton.h',
  'base/ThreadSafeQueue.hpp',
  'base/Thread.cc',
  'base/DateTime.cc',
  'base/ThreadPool.cc',
  'base/log.h',
  'base/Properties.h',
  'base/Demuxer.cc',
  'base/StrUtil.cc',
)

# 构建工具库
cytoolkit_lib = static_library(
  'cytoolkit',
  base_srcs,
  install : true
)

# 定义依赖目标
cytoolkit_dep = declare_dependency(
  link_with : cytoolkit_lib,
  include_directories : include_directories('.')  # 指向 src 目录，允许测试引用 src/base
)